home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d23 / chkup35.arc / CHECKUP.BAT next >
DOS Batch File  |  1989-06-27  |  2KB  |  57 lines

  1.           REM Rich Levin's CHECKUP.BAT (tm)
  2.           REM Copyright (c) 1988 Richard B. Levin
  3.           REM All Rights Reserved
  4.           REM
  5.           REM This batch file maintains clean copies of CHECKUP and .XUP
  6.           REM files.  Rename to AUTOEXEC.BAT and store on a clean floppy
  7.           REM disk.  See CHECKUP.DOC for information on how to create a
  8.           REM clean floppy disk.
  9.           REM
  10.           REM Set the system date and time:
  11.           REM
  12.                     DATE
  13.                     TIME
  14.           REM
  15.           REM Make sure we're on the root directory of the target disk
  16.           REM (substitute the disk drive letter of your choice):
  17.           REM
  18.                     C:
  19.                     CD \
  20.           REM
  21.           REM Copy CHECKUP and .XUP files from the A: drive to the target
  22.           REM disk:
  23.           REM
  24.                     COPY A:\CHECKUP.EXE
  25.                     COPY A:\IBMBIO.XUP
  26.                     COPY A:\IBMDOS.XUP
  27.                     COPY A:\COMMAND.XUP
  28.                     COPY A:\FOO.XUP C:\PLOP\PLOP\FIZZ\FIZZ
  29.           REM
  30.           REM Check files and resulting ERRORLEVEL.  An ERRORLEVEL of 1 or
  31.           REM higher indicates CHECKUP terminated abnormally.  (CHECKUP
  32.           REM supports four ERRORLEVELs; see CHECKUP.DOC for details.)  In
  33.           REM this example, system execution is halted by PAUSE-ing after
  34.           REM a non-zero ERRORLEVEL is encountered.  You may want take
  35.           REM different action(s) based on specific ERRORLEVELs.
  36.           REM (Substitute your list of input files here):
  37.           REM
  38.                     CHECKUP *.COM
  39.                     IF ERRORLEVEL 1 PAUSE
  40.                     CHECKUP C:\PLOP\PLOP\FIZZ\FIZZ\FOO.EXE
  41.                     IF ERRORLEVEL 1 PAUSE
  42.           REM
  43.           REM Copy .XUP files from the target disk back to the clean floppy
  44.           REM disk:
  45.           REM
  46.                     COPY C:\*.XUP A:\
  47.                     COPY C:\PLOP\PLOP\FIZZ\FIZZ\*.XUP A:\
  48.           REM
  49.           REM Reclaim disk space by deleting CHECKUP-related files from the
  50.           REM target disk:
  51.           REM
  52.                     DEL CHECKUP.EXE
  53.                     DEL *.XUP
  54.                     DEL C:\PLOP\PLOP\FIZZ\FIZZ\*.XUP
  55.           REM
  56.           REM End of CHECKUP.BAT
  57.